package cn.cloudplug.instar_ec.main.show;

import android.os.Bundle;
import android.view.View;

import butterknife.OnClick;
import cn.cloudplug.instar_ec.R;
import cn.cloudplug.instar_ec.R2;
import cn.cloudplug.instar_ec.main.UpdateDelegate;
import cn.cloudplug.instar_ec.main.backups.BackupsDelegate;
import cn.cloudplug.instar_ec.main.base.StatusBarDelegate;
import cn.cloudplug.instar_ec.main.child.LocationDelegate;
import cn.cloudplug.instar_ec.main.fingerprint.FingerprintDelegate;
import cn.cloudplug.instar_ec.main.login.PassphrasesDelegate;

/**
 * Created by pc on 2018/1/31.
 */

public class SettingDelegate extends StatusBarDelegate {
    @OnClick({R2.id.ll_backups, R2.id.ll_wifi,R2.id.ll_change_password,R2.id.ll_change_fingerprint,R2.id.ll_location,R2.id.ll_bluetooth,R2.id.ll_update})
    void onClick(View view){
        int id = view.getId();
        if(id==R.id.ll_backups){
            getSupportDelegate().start(new BackupsDelegate(),SINGLETASK);
        }else if(id==R.id.ll_change_password){
            getSupportDelegate().start(new PassphrasesDelegate(),SINGLETASK);
        }else if(id==R.id.ll_change_fingerprint){
            getSupportDelegate().start(new FingerprintDelegate(),SINGLETASK);
        }else if(id==R.id.ll_location){
            getSupportDelegate().start(new LocationDelegate(),SINGLETASK);
        }else if(id==R.id.ll_update){
            getSupportDelegate().start(new UpdateDelegate(),SINGLETASK);
        }else if(id==R.id.ll_wifi){

        }else if(id==R.id.ll_bluetooth){

        }
    }
    @Override
    protected Object setLayout() {
        return R.layout.delegate_setting;
    }

    @Override
    protected void onBindView(Bundle savedInstanceState, View view) {

    }
}
